﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Facebook;

namespace Badhshala
{
    public partial class FacebookClientHelper
    {
        public static FacebookClient CreateFacebookClient(string accessToken = null)
        {
            FacebookClient fbClient;

            if (accessToken == null)
            {
                fbClient = new FacebookClient();
            }
            else
            {
                fbClient = new FacebookClient(accessToken);
            }

            fbClient.AppId = GlobalConstants.AppID;
            fbClient.AppSecret = GlobalConstants.AppSecret;

            return fbClient;
        }
    }
}